package objs;

import service.Play;

import java.awt.*;

public class Bombobj extends Pojo{
    public Bombobj() {
    }

    public Bombobj(Image image, int x, int y, int width, int height, double speed, Play frame) {
        super(image, x, y, width, height, speed, frame);
    }

    public Bombobj(Image image, int x, int y, double speed) {
        super(image, x, y, speed);
    }

    @Override
    public void paintSelf(Graphics gImage) {
        gImage.drawImage(image,x,y,null);
        y+=speed;
        if(y>800){
            Play.removeList.add(this);
        }
    }
}
